package main

import "fmt"

func main() {
	bal := [3]int{3, 2, 1}
	cal := []int{1, 3, 5, 7}
	fmt.Println(bal)
	fmt.Println(cal)

	a := [3][4]int{
		{1, 2, 3, 4},
		{2, 3, 4, 5},
		{6, 7, 8, 9},
	}
	fmt.Println(a)
	fmt.Println(a[2][3])

	fmt.Println(getAverage(cal))

}

func getAverage(arr []int) float32 {
	var i int
	var avg, sum float32
	for i = 0; i < len(arr); i++ {
		sum += float32(arr[i])
	}
	avg = sum / float32(len(arr))
	return avg

}
